package com.twu.biblioteca.entity;

public class Book {

    public Book(String ISBN,String name,String author)
    {
        this.ISBN = ISBN;
        this.name = name;
        this.author = author;
    }

    public final String getISBN() {
        return ISBN;
    }

    public final  String getName() {
        return name;
    }

    public final  String getAuthor() {
        return author;
    }

    public final boolean isReserved() {
        return reserved;
    }

    public final void reserve()
    {
        reserved = true;
    }


    @Override
    public String toString() {
        return getName() + " ( ISBN: " + getISBN() + " )" + " by " + getAuthor() ;
    }

    private String ISBN;
    private String name;
    private String author;
    private boolean reserved;
}
